/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import entities.Product;
import entities.PurchasedProduct;
import entities.TiendaliaOrder;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Jesus
 */
@Local
public interface PurchasedProductBeanLocal {

    List<PurchasedProduct> findByProduct(Product product);

    List<PurchasedProduct> findByOrder(TiendaliaOrder order);

    PurchasedProduct insert(PurchasedProduct purchasedProduct);

    PurchasedProduct update(PurchasedProduct purchasedProduct);

    List<PurchasedProduct> findAll();
}
